<!-- <!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>在线OJ-题目列表</title>
    <style>
        /* 起手式, 100%保证我们的样式设置可以不受默认影响 */
        * {
            /* 消除网页的默认外边距 */
            margin: 0px;
            /* 消除网页的默认内边距 */
            padding: 0px;
        }

        html,
        body {
            width: 100%;
            height: 100%;
            font-family: '楷体', 'KaiTi', cursive;
        }

        .container 
        {
            background-image:linear-gradient(rgba(0,0,0,0.5),rgba(0,0,0,0.5)), url(https://ts1.cn.mm.bing.net/th/id/R-C.c94a0861fdc90cbac8e741d79fde61b1?rik=wVE9eIQbt98vbQ&riu=http%3a%2f%2fpic.bizhi360.com%2fbpic%2f42%2f3942.jpg&ehk=n6AHFfBNktKWKky2%2fNqf066DK0UMetqG%2f7k9iLrI1Ak%3d&risl=&pid=ImgRaw&r=0);
            height: 100vh;
            background-size: cover;
            background-position: center; 
        }

        .container .navbar a 
        {
            /* 设置a标签是行内块元素，允许你设置宽度 */
            display: inline-block;
            /* 设置a标签的宽度,a标签默认行内元素，无法设置宽度 */
            width: 80px;
            /* 设置字体颜色 */
            color: white;
            /* 设置字体的大小 */
            font-size: large;
            /* 设置文字的高度和导航栏一样的高度 */
            line-height: 50px;
            /* 去掉a标签的下划线 */
            text-decoration: none;
            /* 设置a标签中的文字居中 */
            text-align: center;
        }

        /* 设置鼠标事件 */
        .container .navbar a:hover {
            background-color: rgb(79, 82, 79);
        }

        .container .navbar .login {
            float: right;
        }

        .container .question_list {
            padding-top: 50px;
            width: 800px;
            height: 100%;
            margin: 0px auto;
            /* background-color: #ccc; */
            text-align: center;
        }

        .container .question_list table {
            width: 100%;
            font-size: large;
            font-family: 'Lucida Sans', 'Lucida Sans Regular', 'Lucida Grande', 'Lucida Sans Unicode', Geneva, Verdana, sans-serif;
            margin-top: 50px;
            background-color: rgb(243, 248, 246);
        }

        .container .question_list h1 {
            color: green;
        }
        .container .question_list table .item {
            width: 100px;
            height: 40px;
            font-size: large;
            font-family:'Times New Roman', Times, serif;
        }
        .container .question_list table .item a {
            text-decoration: none;
            color: black;
        }
        .container .question_list table .item a:hover {
            color: blue;
            text-decoration:underline;
        }
        .container .footer {
            width: 100%;
            height: 50px;
            text-align: center;
            line-height: 50px;
            color: #ccc;
            margin-top: 15px;
        }
    </style>
</head>

<body>
    <div class="container">
        <div class="navbar">
            <a href="/">⾸⻚</a>
            <a href="/questions">题库</a>
            <a href="https://gitee.com/wang-youdongs-code-path">个人码云</a>
            <a href="https://blog.csdn.net/2302_76941579?type=blog">个人博客</a>
            <a href="https://legacy.cplusplus.com/">C++使用</a>
            <a href="https://chat18.aichatos.xyz/#/chat/1717246335616">Chatgpt</a>
        </div>
        <div class="question_list">
            <h1>OnlineJuge题目列表</h1>
            <table>
                <tr>
                    <th class="item">编号</th>
                    <th class="item">标题</th>
                    <th class="item">难度</th>
                </tr>
                {{#question_list}}
                <tr>
                    <td class="item">{{num}}</td>
                    <td class="item"><a href="/questions/{{num}}">{{name}}</a></td>
                    <td class="item">{{level}}</td>
                </tr>
                {{/question_list}}
            </table>
        </div>
        <div class="footer">
            <h4>@努力一定会成功</h4>
        </div>
    </div>

</body>

</html> -->
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>校园OJ-题目列表</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        @import url('https://fonts.googleapis.com/css2?family=Orbitron:wght@400;700&family=Roboto+Mono&display=swap');

        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: 'Orbitron', sans-serif;
            background: #0d0d1a;
            color: #fff;
            overflow-x: hidden;
            cursor: none;
        }

        .cursor {
            position: fixed;
            width: 20px;
            height: 20px;
            background: radial-gradient(circle, #ff00ff, transparent);
            border-radius: 50%;
            pointer-events: none;
            z-index: 9999;
            transition: transform 0.1s ease;
        }

        #background {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(45deg, #0d0d1a, #1a1a3d);
            z-index: -1;
            animation: pulse 15s infinite;
        }

        @keyframes pulse {
            0%, 100% { opacity: 0.8; }
            50% { opacity: 1; }
        }

        .sidebar {
            position: fixed;
            top: 0;
            left: -250px;
            width: 250px;
            height: 100%;
            background: rgba(20, 20, 40, 0.95);
            padding: 40px 20px;
            transition: left 0.5s ease;
            z-index: 1000;
            box-shadow: 2px 0 20px rgba(255, 0, 255, 0.3);
        }

        .sidebar.active {
            left: 0;
        }

        .menu-btn {
            position: fixed;
            top: 20px;
            left: 20px;
            font-size: 30px;
            color: #ff00ff;
            cursor: pointer;
            z-index: 1001;
            text-shadow: 0 0 10px #ff00ff;
        }

        .sidebar .logo {
            font-size: 28px;
            color: #00ffcc;
            text-shadow: 0 0 15px #00ffcc;
            margin-bottom: 40px;
        }

        .sidebar ul {
            list-style: none;
        }

        .sidebar ul li {
            margin: 20px 0;
        }

        .sidebar ul li a {
            color: #e0e0e0;
            text-decoration: none;
            font-size: 18px;
            padding: 10px;
            display: block;
            border-radius: 10px;
            transition: all 0.3s ease;
        }

        .sidebar ul li a:hover {
            background: linear-gradient(90deg, #ff00ff, #00ffcc);
            color: #0d0d1a;
            box-shadow: 0 0 20px rgba(255, 0, 255, 0.5);
        }

        .question-list {
            margin-top: 100px;
            padding: 50px 0;
            max-width: 1200px;
            margin: 100px auto 0;
            text-align: center;
        }

        .question-list h1 {
            font-size: 48px;
            color: #00ffcc;
            text-shadow: 0 0 15px #00ffcc;
            margin-bottom: 40px;
            animation: fadeInUp 1s ease-out;
        }

        @keyframes fadeInUp {
            from { opacity: 0; transform: translateY(50px); }
            to { opacity: 1; transform: translateY(0); }
        }

        .question-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
            gap: 30px;
            padding: 0 30px;
        }

        .question-card {
            background: linear-gradient(135deg, rgba(20, 20, 40, 0.9), rgba(40, 20, 40, 0.9));
            padding: 30px;
            border-radius: 15px;
            transition: all 0.4s ease;
            position: relative;
            overflow: hidden;
            box-shadow: 0 0 20px rgba(0, 255, 204, 0.2);
        }

        .question-card:hover {
            transform: scale(1.05) rotate(2deg);
            box-shadow: 0 0 40px rgba(0, 255, 204, 0.5);
        }

        .question-card a {
            color: #00ffcc;
            text-decoration: none;
            font-size: 24px;
            margin-bottom: 10px;
            display: block;
        }

        .question-card a:hover {
            text-shadow: 0 0 10px #00ffcc;
        }

        .question-card p {
            font-family: 'Roboto Mono', monospace;
            color: #d0d0d0;
            margin: 5px 0;
        }

        .search-bar {
            margin: 30px 0;
            text-align: center;
        }

        .search-bar input {
            padding: 10px 20px;
            width: 300px;
            border: 2px solid #ff00ff;
            border-radius: 25px;
            background: transparent;
            color: #fff;
            font-size: 16px;
            outline: none;
            transition: all 0.3s ease;
        }

        .search-bar input:focus {
            box-shadow: 0 0 15px #ff00ff;
        }

        footer {
            padding: 30px 0;
            background: rgba(10, 10, 20, 0.9);
            text-align: center;
            border-top: 1px solid #00ffcc;
            margin-top: 50px;
        }

        footer p {
            font-size: 14px;
            color: #b0b0b0;
        }

        @media (max-width: 768px) {
            .question-grid {
                grid-template-columns: 1fr;
            }
            .search-bar input {
                width: 80%;
            }
        }
    </style>
</head>
<body>
    <div id="background"></div>
    <div class="cursor" id="cursor"></div>

    <div class="sidebar" id="sidebar">
        <div class="logo">校园OJ</div>
        <ul>
            <li><a href="/">首页</a></li>
            <!-- <li><a href="/questions">题库</a></li> -->
            <li><a href="#">社区</a></li>
            <li><a href="https://chat.deepseek.com/">AI辅助</a></li>
            <li><a href="https://blog.csdn.net/2302_76941579?type=collect">联系作者</a></li>
        </ul>
    </div>
    <div class="menu-btn" id="menuBtn"><i class="fas fa-bars"></i></div>

    <section class="question-list">
        <h1>选择一个喜欢的题目吧</h1>
        <div class="search-bar">
            <input type="text" placeholder="搜索题目...">
        </div>
        <div class="question-grid">
            {{#question_list}}
            <div class="question-card">
                <a href="/questions/{{num}}">{{name}}</a>
                <p>编号: {{num}}</p>
                <p>难度: {{level}}</p>
            </div>
            {{/question_list}}
        </div>
    </section>

    <footer>
        <p>© 2023 赛博OJ平台. All Rights Reserved.</p>
    </footer>

    <script>
        const menuBtn = document.getElementById('menuBtn');
        const sidebar = document.getElementById('sidebar');
        menuBtn.addEventListener('click', () => {
            sidebar.classList.toggle('active');
        });

        const cursor = document.getElementById('cursor');
        document.addEventListener('mousemove', (e) => {
            cursor.style.left = e.clientX - 10 + 'px';
            cursor.style.top = e.clientY - 10 + 'px';
        });
    </script>
</body>
</html>